//
//  main.m
//  RunLoop
//
//  Created by 崔博 on 2018/8/13.
//  Copyright © 2018年 崔博. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        // insert code here...
        UIApplicationMain();
        NSLog(@"Hello, World!");
    }
    return 0;
}


int UIApplicationMain()
{
    int retVal = 0;
    do{
        int message = sleep_and_waite();
        retVal = process_message(message);
    }while (0==retVal);
    return 0;
}
